#!/bin/bash

go-bindata -o asset.go -pkg=main static/... conf/... views/... 

CGO_ENABLED=1 go build -o httpMonitor -ldflags "-s -w" main.go  asset.go

GOOS=windows CC=/usr/bin/x86_64-w64-mingw32-gcc GOGCCFLAGS="-fPIC -mthreads  -fmessage-length=0 -fdebug-prefix-map=/tmp/go-build154058316=/tmp/go-build"  CGO_ENABLED=1 go build -o httpMonitor.exe -ldflags "-s -w" main.go  asset.go